home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1997 November & December / Amiga-CD 1997 #11-12.iso / pd-disketten / dms-gepackt / 12_95 / apd-12-95-4-2.dms / apd-12-95-4-2.adf / LJ4Boost / LJ4Boost-Install < prev    next >
Text File  |  1995-06-17  |  10KB  |  304 lines

  1. ; -------------------------------------------------------------------------
  2. ; $VER: LJ4Boost-Install 1.04 (19.06.95)
  3. ;
  4. ; Installer-Script for LJ4Boost V1.04
  5. ; Copyright © 1995 by Oliver Hitz
  6.  
  7. ; TEXTS -------------------------------------------------------------------
  8.  
  9. (set #lj4b-install
  10.   (cat "\nLJ4Boost V1.04\n"
  11.        "Installer Script\n\n"
  12.        "© 1995 by Oliver Hitz\n\n"
  13.        "Click on >Continue< to proceed!\n"
  14.   )
  15. )
  16.  
  17. (set #lj4b-install-help
  18.   (cat "This installer script installs the LJ4Boost Printer Driver Package V1.04\n\n")
  19. )
  20.  
  21. (set #lj4b-icons
  22.   (cat "\nInstall what style of icons?")
  23. )
  24.  
  25. (set #lj4b-icons-help
  26.   (cat "This option is for people that have installed MagicWB. Instead of copying MagicWB icons over the original icons, you may select MagicWB here, and a special set of icons, especially designed for LJ4Boost will be installed. NOTE: MagicWB is Copyright © 1992-1994 by Martin Huttenloher.")
  27. )
  28.  
  29. (set #lj4b-driver
  30.   (cat "\nCopy the printer driver to DEVS:Printers?")
  31. )
  32.  
  33. (set #lj4b-driver-help
  34.   (cat "The printer driver is the main program of this package. It is copied to the other printer drivers which are in the directory DEVS:Printers.\n")
  35. )
  36.  
  37. (set #lj4b-prefs
  38.   (cat "\nCopy the preferences editor to SYS:Prefs?")
  39. )
  40.  
  41. (set #lj4b-prefs-help
  42.   (cat "The preferences editor lets you take control over some special features that this package offers.\n")
  43. )
  44.  
  45. (set #lj4b-prefscat
  46.   (cat "\nSelect which catalog files you would like to install.")
  47. )
  48.  
  49. (set #lj4b-prefscat-help
  50.   (cat "Unfortunately there are only three languages available at the moment. But this will (hopefully) change in future versions.\n")
  51. )
  52.  
  53. (set #lj4b-drawer
  54.   (cat "\nCreate a new drawer called LJ4Boost?\n"
  55.        "\n(for registration-program and documentation)")
  56. )
  57.  
  58. (set #lj4b-drawer-help
  59.   (cat "If you select »Create«, a new drawer will be created. This is very useful, as it helps you to keep your system in order.")
  60. )
  61.  
  62. (set #lj4b-doc
  63.   (cat "\nInstall the documentation?")
  64. )
  65.  
  66. (set #lj4b-doc-help
  67.   (cat "Sometimes it is useful to have the documentation ready-to-use somewhere on the hard drive. The documentation is NOT needed by the program.")
  68. )
  69.  
  70. (set #lj4b-register
  71.   (cat "\nThe LJ4Boost Printer Driver Package\n"
  72.        "is SHAREWARE. If you use it, you HAVE TO pay\n"
  73.        "for it.\n\n"
  74.        "Do you want to install the Registration-Utility?\n"
  75.        "(It is suggested you install it in the same\n"
  76.        "directory as the docs, because it can be started\n"
  77.        "from the documentation)."
  78.   )
  79. )
  80.  
  81. (set #lj4b-register-help
  82.   (cat "It is strongly recommended to install the Registration-Utility. After you have registered, you can of course delete it...")
  83. )
  84.  
  85. (set #wrong-kick
  86.   (cat "\nSorry, this package needs at least\n"
  87.        "Kickstart version 2.0!\n\n"
  88.   )
  89. )
  90.  
  91. ; VARS --------------------------------------------------------------------
  92.  
  93. (set sourcePath (expandpath (pathonly @icon)))
  94.  
  95. (set ver (/ (getversion "exec.library" (resident)) 65536))
  96.  
  97. ; MAIN --------------------------------------------------------------------
  98.  
  99. (complete 0)
  100. (if (> ver 36)
  101.  
  102.     ; Main question -------------------------------------------------
  103.  
  104.   (if (askbool (prompt #lj4b-install)
  105.                (help #lj4b-install-help)
  106.                (choices "Continue" "End Installation")
  107.                (default 1)
  108.       )
  109.     (
  110.  
  111.     ; Icon style ----------------------------------------------------
  112.  
  113.       (set icons (askchoice (prompt #lj4b-icons)
  114.                             (help #lj4b-icons-help)
  115.                             (choices "original Workbench" "MagicWB")
  116.                             (default 0)
  117.                  )
  118.       )
  119.  
  120.     ; Printer driver ------------------------------------------------
  121.  
  122.       (if (askbool (prompt #lj4b-driver)
  123.                    (help #lj4b-driver-help)
  124.                    (choices "Copy" "Skip This Part")
  125.                    (default 1)
  126.           )
  127.           (
  128.             (Copyfiles (source (tackon sourcePath "Devs/Printers/LJ4Boost"))
  129.                        (dest "DEVS:Printers")
  130.                        (infos)
  131.             )
  132.             (if (= icons 1)
  133.                 (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost.info"))
  134.                            (dest "DEVS:Printers")
  135.                 )
  136.             )
  137.           )
  138.       )
  139.  
  140.     ; Preferences Editor --------------------------------------------
  141.  
  142.       (complete 25)
  143.       (if (askbool (prompt #lj4b-prefs)
  144.                    (help #lj4b-prefs-help)
  145.                    (choices "Copy" "Skip This Part")
  146.                    (default 1)
  147.           )
  148.           (
  149.             (Copyfiles (source (tackon sourcePath "Prefs/LJ4Boost"))
  150.                        (dest "SYS:Prefs")
  151.                        (infos)
  152.             )
  153.             (if (= icons 1)
  154.                 (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost-Prefs.info"))
  155.                            (dest "SYS:Prefs")
  156.                            (newname "LJ4Boost.info")
  157.                 )
  158.             )
  159.           )
  160.       )
  161.  
  162.     ; Catalog files -------------------------------------------------
  163.  
  164.       (complete 40)
  165.       (set catalogs (askoptions (prompt #lj4b-prefscat)
  166.                                 (help #lj4b-prefscat-help)
  167.                                 (choices "Deutsch"
  168.                                          "Français")
  169.                                 (default 0)
  170.                     )
  171.       )
  172.       (set n 0)
  173.       (while (set catalog (select n "deutsch"
  174.                                     "français"
  175.                                     ""
  176.                           )
  177.              )
  178.              (
  179.                 (if (IN catalogs n)
  180.                     (
  181.                       (Copyfiles (source (tackon sourcePath (tackon "Locale/Catalogs" (tackon catalog "lj4boostprefs.catalog"))))
  182.                                  (dest (tackon "LOCALE:Catalogs" catalog))
  183.                       )
  184.                     )
  185.                 )
  186.                 (set n (+ n 1))
  187.              ))
  188.  
  189.  
  190.     ; Drawer --------------------------------------------------------
  191.  
  192.       (complete 50)
  193.       (if (askbool (prompt #lj4b-drawer)
  194.                    (help #lj4b-drawer-help)
  195.                    (choices "Create" "Skip This Part")
  196.                    (default 1)
  197.           )
  198.           (
  199.             (set main-dest (askdir (prompt "Please select where to create a drawer.")
  200.                                    (help @askdir-help)
  201.                                    (default "SYS:Tools")
  202.                            )
  203.             )
  204.             (makedir (tackon main-dest "LJ4Boost"))
  205.             (if (= icons 1)
  206.                 (Copyfiles (source (tackon sourcePath "MWBIcons/Drawer.info"))
  207.                            (dest main-dest)
  208.                            (newname "LJ4Boost.info")
  209.                            (infos)
  210.                 )
  211.             )
  212.             (set main-dest (tackon main-dest "LJ4Boost"))
  213.           )
  214.       )
  215.  
  216.     ; Documentation program -----------------------------------------
  217.  
  218.       (complete 60)
  219.       (if (askbool (prompt #lj4b-doc)
  220.                    (help #lj4b-doc-help)
  221.                    (choices "Copy" "Skip This Part")
  222.                    (default 1)
  223.           )
  224.           (if main-dest
  225.               (
  226.                 (Copyfiles (source (tackon sourcePath "LJ4Boost.guide"))
  227.                            (dest main-dest)
  228.                            (infos)
  229.                 )
  230.                 (if (= icons 1)
  231.                     (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost.guide.info"))
  232.                                (dest main-dest)
  233.                                (infos)
  234.                     )
  235.                 )
  236.               )
  237.               (
  238.                 (set this-dest (askdir (prompt "Please select a place for the documentation.")
  239.                                        (help @askdir-help)
  240.                                        (default "SYS:Tools")
  241.                                )
  242.                 )
  243.                 (Copyfiles (source (tackon sourcePath "LJ4Boost.guide"))
  244.                            (dest this-dest)
  245.                            (infos)
  246.                 )
  247.                 (if (= icons 1)
  248.                     (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost.guide.info"))
  249.                                (dest this-dest)
  250.                                (infos)
  251.                     )
  252.                 )
  253.               )
  254.           )
  255.       )
  256.  
  257.     ; Registration Tool ---------------------------------------------
  258.  
  259.       (complete 75)
  260.       (if (askbool (prompt #lj4b-register)
  261.                    (help #lj4b-register-help)
  262.                    (choices "Copy" "Skip This Part")
  263.                    (default 1)
  264.           )
  265.           (if main-dest
  266.               (
  267.                 (Copyfiles (source (tackon sourcePath "LJ4Boost-Register"))
  268.                            (dest main-dest)
  269.                            (infos)
  270.                 )
  271.                 (if (= icons 1)
  272.                     (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost-Register.info"))
  273.                                (dest main-dest)
  274.                                (infos)
  275.                     )
  276.                 )
  277.               )
  278.               (
  279.                 (set this-dest (askdir (prompt "Please select a place for the registration utility.")
  280.                                        (help @askdir-help)
  281.                                        (default this-dest)
  282.                                )
  283.                 )
  284.                 (Copyfiles (source (tackon sourcePath "LJ4Boost-Register"))
  285.                            (dest this-dest)
  286.                            (infos)
  287.                 )
  288.                 (if (= icons 1)
  289.                     (Copyfiles (source (tackon sourcePath "MWBIcons/LJ4Boost-Register.info"))
  290.                                (dest this-dest)
  291.                                (infos)
  292.                     )
  293.                 )
  294.               )
  295.           )
  296.       )
  297.       (complete 99)
  298.     )
  299.   )
  300.   (abort #wrong-kick)
  301. )
  302. (set @default-dest "DEVS:Printers")
  303.  
  304.